#include <iostream>
using std::cout;
using std::endl;

double Divide(double dividend, double divisor) noexcept
{
	if (divisor == 0)
	{
		throw divisor;
	}
	
	return dividend / divisor; 
}

// double Divide(double dividend, double divisor);

int main()
{
//	Divide(1, 0) noexcept; 
	try
	{
		cout << Divide(1, 0) << endl;
		
	}
	catch (double divisor)
	{
		cout << "divisor is zero" << endl;
	}
	
	cout << "pragram end" << endl;
	
	return 0;
}
